<div class="row-fluid listcontent">
    <div class="span12">
        <div class="portlet box grey">
            <div class="portlet-title">
                <div class="caption"><i class="icon-cogs"></i>用户列表</div>
                <div class="actions" id="orderaline">
                    <div class="btn-group">
                        <a class="btn blue" href="#" data-toggle="dropdown">
                            <i class="icon-cogs"></i>&nbsp;&nbsp;操作
                            <i class="icon-angle-down"></i>
                        </a>
                        <ul class="dropdown-menu pull-right">
                            <li><a id="info_delete"><i class="icon-trash"></i>删除用户</a></li>
                            <li><a id="info_forbidden"><i class="icon-lock"></i>禁用用户</a></li>
                            <li><a id="info_recovery"><i class="icon-unlock"></i>恢复用户</a></li>
                        </ul>
                    </div>
                    <div class="btn-group">
                        <a class="btn blue Download" href="javascript:void(0)" data-toggle="dropdown">
                            <i class="icon-cogs"></i>&nbsp;&nbsp;导出已认证用户信息
                        </a>

                    </div>
                </div>
            </div>
            <div class="portlet-body">
                <div class="dataTables_wrapper form-inline">
                    <div class="row-fluid">
                        <div class="span12">
                            <form id="searchform" action="{$action}" method="post">
                                <div class="dataTables_filter" id="sample_2_filter" style="float: left">
                                    <label>
                                        <input type="button" class="btn blue searchsubmit" value="用户状态:  "/>
                                        <select name='search[]' style="width: 80px;margin-right: 10px">
                                            <option value="">全部</option>
                                            <?php foreach ($status as $key => $vo) { ?>
                                                <option value="{$key}"
                                                    <?php if (isset($search[0]) && ($search[0] == $key)) { ?>
                                                        selected="selected"
                                                    <?php } ?> >
                                                    {$vo}
                                                </option>
                                            <?php } ?>
                                        </select>
                                    </label>
                                </div>
                                <div class="dataTables_filter" id="sample_2_filter" style="float: left">
                                    <input type="button" class="btn blue searchsubmit" value="性别:  "/>
                                    <select name='search[]' style="width: 80px;margin-right: 10px">
                                        <option value="">全部</option>
                                        <?php foreach ($sex as $key => $vo) { ?>
                                            <option value="{$key}"
                                                <?php if (isset($search[1]) && ($search[1] == $key)) { ?>
                                                    selected="selected"
                                                <?php } ?> >
                                                {$vo}
                                            </option>
                                        <?php } ?>
                                    </select>
                                </div>

                                <div class="dataTables_filter" id="sample_2_filter" style="float: left;">
                                    <label>
                                        <input type="button" class="btn blue searchsubmit" value="搜索:  "/>
                                        <input type="text" name="search[]" placeholder="用户昵称|手机号码"
                                               aria-controls="sample_2" class="m-wrap"
                                               value="{$search[3]?$search[3]:''}" style="height:20px"/>
                                    </label>
                                </div>
                                <div class="dataTables_filter" id="sample_2_filter" style="float: left">
                                    <input type="button" class="btn blue searchsubmit" value="省:  "/>
                                    <select name='search[]' id="province" style="width: 100px;margin-right: 10px">
                                        <option value="">全部</option>
                                        <?php foreach ($province as $key => $vo) { ?>
                                            <option value="{$vo['district_id']}"
                                                <?php if (isset($search[4]) && ($search[4] == $vo['district_id'])) { ?>
                                                    selected="selected"
                                                <?php } ?> >
                                                {$vo.district}
                                            </option>
                                        <?php } ?>
                                    </select>
                                </div>
                                <div class="dataTables_filter" id="sample_2_filter" style="float: left;margin-left:20px">
                                    <input type="button" class="btn blue searchsubmit" value="市:  "/>
                                    <select name='search[]' id="city" style="width: 100px;margin-right: 10px">
                                        <option value="">全部</option>
                                        <?php foreach ($city as $key => $vo) { ?>
                                            <option value="{$vo['district_id']}"
                                                <?php if (isset($search[5]) && ($search[5] == $vo['district_id'])) { ?>
                                                    selected="selected"
                                                <?php } ?> >
                                                {$vo.district}
                                            </option>
                                        <?php } ?>
                                    </select>
                                </div>
                                <div class="dataTables_filter" id="sample_2_filter" style="float: left;margin-left:20px">
                                    <input type="button" class="btn blue searchsubmit" value="区:  "/>
                                    <select name='search[]' id="area" style="width: 100px;margin-right: 10px">
                                        <option value="">全部</option>
                                        <?php foreach ($district as $key => $vo) { ?>
                                            <option value="{$vo['district_id']}"
                                                <?php if (isset($search[6]) && ($search[6] == $vo['district_id'])) { ?>
                                                    selected="selected"
                                                <?php } ?> >
                                                {$vo.district}
                                            </option>
                                        <?php } ?>
                                    </select>
                                </div>
                                <div class="dataTables_filter" id="sample_2_filter" style="float: left;clear: both;">
                                    <label>
                                        <input type="button" class="btn blue searchsubmit" value="注册开始时间"/>
                                        <input type="text" name="search[]"
                                               aria-controls="sample_2" class="m-wrap" value="{$search[7]?$search[7]:''}" style="height:20px"  onclick="WdatePicker({lang:'zh-cn',dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
                                    </label>
                                </div>
                                <div class="dataTables_filter" id="sample_2_filter" style="float: left">
                                    <label>
                                        <input type="button" class="btn blue searchsubmit" value="注册结束时间:"/>
                                        <input type="text" name="search[]" placeholder=""
                                               aria-controls="sample_2" class="m-wrap" value="{$search[8]?$search[8]:''}" style="height:20px"   onclick="WdatePicker({lang:'zh-cn',dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
                                    </label>
                                </div>

                                <div class="dataTables_filter" id="sample_2_filter" style="float: left;margin-left:10px">
                                    <label>
                                        <input type="button" class="btn blue search" value="提交"/>
                                    </label>
                                </div>
                            </form>
                        </div>
                    </div>
                    <table id="basicinfo" class="table table-hover table-bordered">
                        <thead>
                        <th></th>
                        <th style="width:8px;"><input type="checkbox"/></th>
                        <th>ID</th>
                        <th>手机号码</th>
                        <th>用户名</th>
                        <th>头像</th>
                        <th>状态</th>
                        <th>性别</th>
                        <th>省</th>
                        <th>市</th>
                        <th>区</th>
                        <th>注册时间</th>
                        <th>关注用户</th>
                        <th>关注的狗狗</th>
                        <th style="width:110px;">操作</th>
                        </thead>
                        <tbody>
                        {if(count($list)>0)}
                        {volist name='list' id='val'}
                        <tr class="odd gradeX ">
                            <td><span class="plus plusclose" act="close"></span></td>
                            <td><input type="checkbox" class="checkboxes" name="id" value="{$val.user_id}"/></td>
                            <td>{$val.user_id}</td>
                            <td>{$val.user_phone}</td>
                            <td>{$val.user_username}</td>
                            {if $val['user_image']==''}
                                <td><img src="{$Think.config.web_admin_url}/file/general/avatar/avatar.jpg" style="width:200px;height:100px"></td>
                            {else /}
                            <td><img src="{$val.user_image}" style="width:200px;height:100px"></td>
                            {/if}
                            <td>{$status[$val['user_status']]?$status[$val['user_status']]:''}</td>
                            <td>{$sex[$val['user_gender']]?$sex[$val['user_gender']]:''}</td>
                            <td>{$val['province']?$val['province']:''}</td>
                            <td>{$val['city']?$val['city']:''}</td>
                            <td>{$val['district']?$val['district']:''}</td>
                            <td>{$val.user_time}</td>
                            <td>{$val.userCount}</td>
                            <td>{$val.dogCount}</td>
                            <td>
                                <a class="btn mini purple reset" data-id='{$val.user_id}'><span>编辑资料</span></a>
                            </td>
                        </tr>
                        <tr class="plusarea">
                            <td colspan="100%">
                                <div class="row-fluid">
                                    <?php if($val['user_card']!=''){?>
                                    <div class="span4">
                                        <div class="control-group">
                                            <span>身份证号码:{$val['user_card']}</span>
                                        </div>
                                    </div>
                                    <?php }?>
                                    <?php if($val['user_facade_img']!=''){?>

                                    <div class="span4">
                                        <div class="control-group">
                                            <span>身份证正面:</span><span><img src="{$val['user_facade_img']}"></span>
                                        </div>
                                    </div>
                                    <?php }?>

                                </div>

                                <div class="row-fluid">
                                    <?php if($val['user_ldentity_img']!=''){?>

                                    <div class="span4">
                                        <div class="control-group">
                                            <span>身份证反面:</span><span><img src="{$val['user_ldentity_img']}"></span>
                                        </div>
                                    </div>
                                    <?php }?>
                                    <?php if($val['user_hand_img']!=''){?>
                                    <div class="span4">
                                        <div class="control-group">
                                            <span>手持身份证:</span><span><img src="{$val['user_hand_img']}"></span>
                                        </div>
                                    </div>
                                    <?php }?>
                                </div>
                            </td>
                        </tr>
                        {/volist}
                        {else/}
                        <tr>
                            <td colspan="16"><span style="margin-left: 50px">暂无数据</span></td>
                        </tr>
                        {/if}
                        </tbody>
                    </table>
                    <input type="hidden" name="page" value="{$page?$page:''}">
                </div>
            </div>
        </div>
        {if(!empty($list))}
        {$list->render()}
        {/if}
    </div>
</div>